
import Vue from 'vue'
import Router from 'vue-router'
// import login from '@/views/login2.vue'
import manage from '@/views/manage.vue'
import tradesys_moneychange from '@/views/tradesys_moneychange'
import tradesys_asset from '@/views/tradesys_asset.vue'
import menu from '@/views/menu.vue'
import tradesys_purchase from '@/views/tradesys_purchase.vue'


import tradesys_buy from '@/views/tradesys_buy.vue'
import tradesys_log from '@/views/tradesys_log.vue'
import product_dict from '@/views/product_dict.vue'
import account_dict from '@/views/account_dict.vue'


import future_operate from  '@/views/future_operate.vue'

import purchase_log from  '@/views/purchase_log.vue'
import product_dict_summary from  '@/views/product_dict_summary.vue'
import config_qs_key  from  '@/views/config_qs_key.vue'
import config_account  from  '@/views/config_account.vue'
import config_event  from  '@/views/config_event.vue'
import product_futures_operation  from  '@/views/product_futures_operation.vue'
import product_sell_table  from  '@/views/product_sell_table.vue'





import tradesys_purchase_summary  from  '@/views/tradesys_purchase_summary.vue'



const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}
Vue.use(Router)
  



const routers = [
  {path: '/',component:manage},
  {
  	path: '/manage',
  	component: manage,
  	name: '',
	children: [
	{
		path: '/menu',
		component: menu,
		meta: ['-', ''],
	},
	{
		path: '/model',
		component: menu,
		meta: ['-', ''],
	},
	 
	  
	

	{
		path: '/tradesys_asset',
		component: tradesys_asset,
		meta: ['产品运维', '操作记录'],
	},
	{
		path: '/tradesys_moneychange',
		component: tradesys_moneychange,
		meta: ['产品运维', '出入金记录'],
	},
	{
		path: '/tradesys_purchase',
		component: tradesys_purchase,
		meta: ['产品运维', '点位计算'],
	},
	{
		path: '/tradesys_purchase_summary',
		component: tradesys_purchase_summary,
		meta: ['产品运维', '点位计算'],
	},
	{
		path: '/tradesys_buy',
		component: tradesys_buy,
		meta: ['产品运维', '申购赎回'],
	},
	
	{
		path: '/future_operate',
		component: future_operate,
		meta: ['产品运维', '期货操作'],
	},
	
	{
		path: '/tradesys_log',
		component: tradesys_log,
		meta: ['产品维护', '交易日志'],
	},
	{
		path: '/purchase_log',
		component: purchase_log,
		meta: ['产品运维', '申赎结果表'],
	},
	{
		path: '/account_dict',
		component: account_dict,
		meta: ['产品维护', '账户列表'],
	},
	{
		path: '/product_dict',
		component: product_dict,
		meta: ['产品维护', '产品列表'],
	},
	{
		path: '/product_dict_summary',
		component: product_dict_summary,
		meta: ['产品维护', '券商汇总'],
	},
	{
		path: '/config_qs_key',
		component: config_qs_key,
		meta: ['系统运维', 'config_qs_key'],
	},
	{
		path: '/config_account',
		component: config_account,
		meta: ['系统运维', 'CONFIG修改'],
	},
	{
		path: '/config_event',
		component: config_event,
		meta: ['系统运维', 'WORKFLOW修改'],
	},
	{
		path: '/product_futures_operation',
		component: product_futures_operation,
		meta: ['产品运维', '期货操作'],
	},
	{
		path: '/product_sell_table',
		component: product_sell_table,
		meta: ['产品运维', '卖出操作'],
	}
	
	
	
	]
  }
]

export default routers


